package com.dongyun.loraweb.entity;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

@Entity
public class LoraBaseStation extends DomainObject {
	private String identifier;
	private String name;
	@OneToMany
	private List<LoraBaseStationPass> loraBaseStationPasses=new ArrayList<>();
	public String getIdentifier() {
		return identifier;
	}
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<LoraBaseStationPass> getLoraBaseStationPasses() {
		return loraBaseStationPasses;
	}
	public void setLoraBaseStationPasses(List<LoraBaseStationPass> loraBaseStationPasses) {
		this.loraBaseStationPasses = loraBaseStationPasses;
	}
	@Override
	public String toString() {
		return "("+identifier+")"+name;
	}
}
